
<div class="layui-form-item">
    <label for="{{ $field }}" class="layui-form-label">{{ $title }}
    </label>
    <div class="layui-input-inline" style="width: 80%;">
        @if(isset($value) && is_array($value) && count($value))
            <input type="hidden" name="{{ $field }}" id="{{ $field }}_value" value="{{ implode(',', $value) }}" lay-verify="{{ $lay_verify ?? "" }}">
        @else
            <input type="hidden" name="{{ $field }}" id="{{ $field }}" lay-verify="{{ $lay_verify ?? "" }}">
        @endif
        <div class="layui-upload">
            <button type="button" class="layui-btn layui-btn-sm up-images" data-field="{{ $field }}" data-num="{{ $num ?? 0 }}">选择上传图片</button>
            <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;width: 88%">
                预览图：<span style="color: grey; font-size: 12px">@if(isset($num) && $num)最多{{ $num }}张图片)@endif</span>
                <div class="layui-upload-list uploader-list" style="overflow: auto;" id="uploader-list">
                    @if(isset($value) && is_array($value) && count($value) > 0)
                        @foreach($value as $k => $v)
                            <div id="" class="file-iteme" data-field="{{ $field }}">
                                <div class="handle layui-btn-group">
                                    <input type="hidden" name="{{ $field }}[]" value="{{ $v }}">
                                    <button type="button" style="height: 18px; line-height: 18px; background-color: #80808000; border: none; border-left: 1px solid white;color: white" ><i class="layui-icon layui-icon-left"></i></button>
                                    <button type="button" style="height: 18px; line-height: 18px; background-color: #80808000; border: none; border-left: 1px solid white;color: white" ><i class="layui-icon layui-icon-right"></i></button>
                                    <button type="button" style="height: 18px; line-height: 18px; background-color: #80808000; border: none; border-left: 1px solid white;color: white" ><i class="layui-icon layui-icon-delete"></i></button>
                                </div>
                                <img style="width: 100px;height: 100px;" src="{{ $v }}">
                                <div class="info" style="display: none;">图片</div>
                            </div>
                        @endforeach
                    @endif
                </div>
            </blockquote>
        </div>
    </div>
</div>
